﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace Windows8Accelerator.Core.Xaml.Controls
{
    public class GroupStyle : DependencyObject
    {
        public DataTemplateSelector HeaderTemplateSelector
        {
            get { return (DataTemplateSelector)GetValue(HeaderTemplateSelectorProperty); }
            set { SetValue(HeaderTemplateSelectorProperty, value); }
        }
        public static readonly DependencyProperty HeaderTemplateSelectorProperty =
            DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(GroupStyle), new PropertyMetadata(null));       

        public bool HidesIfEmpty
        {
            get { return (bool)GetValue(HidesIfEmptyProperty); }
            set { SetValue(HidesIfEmptyProperty, value); }
        }
        public static readonly DependencyProperty HidesIfEmptyProperty =
            DependencyProperty.Register("HidesIfEmpty", typeof(bool), typeof(GroupStyle), new PropertyMetadata(false));



        public Style ContainerStyle
        {
            get { return (Style)GetValue(ContainerStyleProperty); }
            set { SetValue(ContainerStyleProperty, value); }
        }
        public static readonly DependencyProperty ContainerStyleProperty =
            DependencyProperty.Register("ContainerStyle", typeof(Style), typeof(GroupStyle), new PropertyMetadata(null));

        
    }
}
